﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace LeitorNFe
{
    public class Util
    {
        public static void GravarLog(String Mensagem, String Sistema)
        {
            StreamWriter sw = File.AppendText(Path.Combine(System.Configuration.ConfigurationSettings.AppSettings["LogPath"], DateTime.Now.Month.ToString() + DateTime.Now.Year.ToString() + ".log"));
            sw.WriteLine(DateTime.Now.ToString() + " [" + Sistema + "] " + Mensagem);
            sw.Close();
        }
    }
}
